/**
 * 
 */

package com.chengyu.eyc.enums;

/**
 * @author kevin
 *
 */
public enum OrderByEnum {

    ASC("ASC"), DESC("DESC");

    private String type;

    OrderByEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return this.type;
    }

    public OrderByEnum reverse() {
        if (equals(ASC)) {
            return DESC;
        }
        return ASC;
    }

}
